package com.bigegg.employee.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bigegg.employee.mapper.BoardPostMapper;
import com.bigegg.employee.domain.BoardPost;
import com.bigegg.employee.service.IBoardPostService;

/**
 * 公告职位Service业务层处理
 * 
 * @author sun
 * @date 2022-08-15
 */
@Service
public class BoardPostServiceImpl implements IBoardPostService 
{
    @Autowired
    private BoardPostMapper boardPostMapper;

    /**
     * 查询公告职位
     * 
     * @param id 公告职位主键
     * @return 公告职位
     */
    @Override
    public BoardPost selectBoardPostById(Long id)
    {
        return boardPostMapper.selectBoardPostById(id);
    }

    /**
     * 查询公告职位列表
     * 
     * @param boardPost 公告职位
     * @return 公告职位
     */
    @Override
    public List<BoardPost> selectBoardPostList(BoardPost boardPost)
    {
        return boardPostMapper.selectBoardPostList(boardPost);
    }

    /**
     * 新增公告职位
     * 
     * @param boardPost 公告职位
     * @return 结果
     */
    @Override
    public int insertBoardPost(BoardPost boardPost)
    {
        return boardPostMapper.insertBoardPost(boardPost);
    }

    /**
     * 修改公告职位
     * 
     * @param boardPost 公告职位
     * @return 结果
     */
    @Override
    public int updateBoardPost(BoardPost boardPost)
    {
        return boardPostMapper.updateBoardPost(boardPost);
    }

    /**
     * 批量删除公告职位
     * 
     * @param ids 需要删除的公告职位主键
     * @return 结果
     */
    @Override
    public int deleteBoardPostByIds(Long[] ids)
    {
        return boardPostMapper.deleteBoardPostByIds(ids);
    }

    /**
     * 删除公告职位信息
     * 
     * @param id 公告职位主键
     * @return 结果
     */
    @Override
    public int deleteBoardPostById(Long id)
    {
        return boardPostMapper.deleteBoardPostById(id);
    }
}
